package com.hm.system.share.service.mongo.system;

import com.hm.common.model.PageInfo;
import com.hm.common.util.CommonDef.OperationRecord;
import com.hm.system.mongo.annotation.RecycleRecordAnnotation;
import com.hm.system.mongo.domain.def.DbSystemDef;
import com.hm.system.mongo.vo.system.SysRoleInfoVo;

/**
 * @author shishun.wang
 * @date 2016年5月12日 下午10:19:38
 * @version 1.0
 * @describe
 */
public interface SysRoleInfoService {

	@RecycleRecordAnnotation(value = OperationRecord.STANDARD_NEW, documentDef = DbSystemDef.SYS_ROLE_INFO)
	public String addSysRoleInfo(SysRoleInfoVo sysRoleInfo, String operationUser);

	@RecycleRecordAnnotation(value = OperationRecord.STANDARD_UPDATE, documentDef = DbSystemDef.SYS_ROLE_INFO)
	public String updateSysRoleInfo(SysRoleInfoVo sysRoleInfo, String operationUser);

	@RecycleRecordAnnotation(value = OperationRecord.STANDARD_DELETE, documentDef = DbSystemDef.SYS_ROLE_INFO)
	public String deleteSysRoleInfo(SysRoleInfoVo sysRoleInfo, String operationUser);

	public SysRoleInfoVo getSysRoleInfo(String id);

	public PageInfo<SysRoleInfoVo> querySysRoleInfo(String name, Long startTime, Long endTime, Integer pageNumber,
			Integer pageSize);
}
